import request from '@/utils/request'

export default{


  // 讲师列表
  getTeacherListPage(pageParam) {
    return request({
      url: '/eduservice/teacher/findTeacherByCondition',
      method: 'post',
      //requestBody
      data:pageParam
    })
  },

  //根据id删除讲师
  removeById(id) {
    return request({
      url: `/eduservice/teacher/${id}`,
      method: 'post'
    })
  },

  //添加讲师
  saveTeacher(teacherParam) {
    return request({
      url: `/eduservice/teacher/addEduTeacher`,
      method: 'post',
      data:teacherParam
    })
  },

  //获取老师信息
  findTeacherById(id) {
    return request({
      url: `/eduservice/teacher/findTeacher/${id}`,
      method: 'post'
    })
  },

  //修改老师信息
  updateTeacherById(teacherParam) {
    return request({
      url: `/eduservice/teacher/updateTeacher`,
      method: 'post',
      data:teacherParam
    })
  }
}

